import babel from 'rollup-plugin-babel'
import serve from 'rollup-plugin-serve'
import commonjs from 'rollup-plugin-commonjs'
import terser from '@rollup/plugin-terser'

export default {
  input: './src/core/instance/index.js',
  output: [
    {
      format: 'umd',
      name: 'Vue',
      file: 'dist/umd/vue.min.js',
      sourcemap: true,
      // plugins: [terser()]
    }
  ],
  plugins: [
    babel({
      exclude: 'node_modules/**'
    }),
    serve({
      open: true,
      port: 3000,
      contentBase: '',
      openPage: '/index.html'
    }),
    commonjs()
  ]
}
